﻿@{
    Layout = null;
    }
<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>H+ 后台主题UI框架 - 登录</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="~/Scripts/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="~/Scripts/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="~/Scripts/css/animate.min.css" rel="stylesheet">
    <link href="~/Scripts/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if (window.top !== window.self) { window.top.location = window.location; }</script>
    <script src="~/Scripts/js/jquery.min.js"></script>
    <script src="~/Scripts/js/gt.js"></script>
    <script src="~/Scripts/jquery.validate.js"></script>
    <script src="~/Scripts/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="~/Scripts/js/plugins/validate/messages_zh.min.js"></script>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        $(function () {

            $.ajax({
                // 获取id，challenge，success（是否启用failback）
                url: "/Admin/GeekTest",
                type: "get",
                dataType: "json", // 使用jsonp格式
                success: function (data) {
                    // 使用initGeetest接口
                    // 参数1：配置参数，与创建Geetest实例时接受的参数一致
                    // 参数2：回调，回调的第一个参数验证码对象，之后可以使用它做appendTo之类的事件
                    initGeetest({
                        gt: data.gt,
                        challenge: data.challenge,
                        product: "float", // 产品形式
                        offline: !data.success
                    },
                     handler);
                }
            });


            //表单验证
            $("form").validate({
                rules: {
                    uid: "required",
                    pwd: "required"
                },
                messages: {
                    uid: "用户名不能为空",
                    pwd: "密码不能为空"
                }
            });
        });

        var handler = function (captchaObj) {
            // 将验证码加到id为captcha的元素里
            captchaObj.appendTo("#geetest-container");
            captchaObj.onSuccess(function () {
                $("#btn").removeAttr("disabled");
               
            });
        };
    </script>
</head>
<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>
                <h1 class="logo-name">H+</h1>
            </div>
            <h3>欢迎使用 恒望科技OA办公系统</h3>
            <form class="form-group has-success" action="/Admin/Login" method="post">
                <div class="form-group ">
                    <input type="text" class="form-control" name="uid" id="uid" placeholder="用户名" required>
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" name="pwd" id="pwd" placeholder="密码" required>
                </div>
                <div id="geetest-container"></div>
                <button class="btn btn-primary block full-width m-b" id="btn" disabled="disabled">登 录</button>

                <p class="text-muted text-center">
                    <a href="login.html#"><small>忘记密码了？</small></a> | <a href="register.html">注册一个新账号</a>
                </p>

            </form>
        </div>
    </div>
    <script src="~/Scripts/js/jquery.min.js?v=2.1.4"></script>
    <script src="~/Scripts/js/bootstrap.min.js?v=3.3.6"></script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>
<!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
</html>

